
#ifndef PROMPT_H
#define PROMPT_H

#include "../osocklib/osocklib.h"

#include "./prompt_shared.h"

#define PROMPT_COMMAND_SET       "set"
#define PROMPT_COMMAND_HELP      "help"
#define PROMPT_COMMAND_LIST      "list"
#define PROMPT_COMMAND_GET       "get"
#define PROMPT_COMMAND_INFO      "info"
#define PROMPT_COMMAND_DOWNLOAD  "download"
#define PROMPT_COMMAND_UPLOAD    "upload"
#define PROMPT_COMMAND_CONNECT   "connect"
#define PROMPT_COMMAND_RAW       "raw"
#define PROMPT_COMMAND_EXIT      "quit"
#define PROMPT_COMMAND_SINK      "sink"

#define PROMPT_WHAT           "What ?"
#define PROMPT_GET_NEED_OPT   "Get need the key to get informations.\nUsage: get key"
#define PROMPT_CONNECT_NEED_OPT "Connect need the key to get informations.\nUsage: connect ip:port"
#define PROMPT_RAW_NEED_OPT "Raw need the key to get informations.\nUsage: raw ip:port cmd"



pid_t get_yopd_pid(char*);

void network_send(msd_s*, npacket_s*);

int main(int argc, char** argv);

void destroy(void);

void show_all_program_options(void);

void change_option(char* opt);

void show_help(void);

void show_list(void);

void command_get(char*);

void show_infos(void);

void show_downloads(void);

void show_uploads(void);

void command_connect(char*);

void command_raw(char*,char*);

void sink_server(void);

#endif/*PROMPT_H*/
